package cn.linstudy.handler.impl;

import cn.linstudy.vo.result.ResponseBean;
import cn.linstudy.handler.IJobHandler;
import cn.linstudy.log.JobLogger;

/**
 * @Author XiaoLin
 * @Date 2022/1/8 14:17
 * @Description
 */
public class GlueJobHandler extends IJobHandler {

    private long glueUpdatetime;
    private IJobHandler jobHandler;
    public GlueJobHandler(IJobHandler jobHandler, long glueUpdatetime) {
        this.jobHandler = jobHandler;
        this.glueUpdatetime = glueUpdatetime;
    }
    public long getGlueUpdatetime() {
        return glueUpdatetime;
    }

    @Override
    public ResponseBean<String> execute(String param) throws Exception {
        JobLogger.log("----------- glue.version:"+ glueUpdatetime +" -----------");
        return jobHandler.execute(param);
    }

}